package com.sangeng.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sangeng.domain.ResponseResult;
import com.sangeng.domain.dto.AddArticleDto;
import com.sangeng.domain.entity.Article;
import com.sangeng.domain.vo.ArticleVo;
import com.sangeng.domain.vo.PageVo;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * 文章表(Article)表服务接口
 *
 * @author makejava
 * @since 2022-04-12 20:55:36
 */
public interface ArticleService  extends IService<Article> {

    ResponseResult hotArticleList();

    ResponseResult articleList(Integer pageNum, Integer pageSize, Long categoryId);

    ResponseResult getArticleDetail(Long id);

    ResponseResult updateViewCount(Long id);

    ResponseResult add(AddArticleDto article);

    PageVo selectArticlePage(Article article, Integer pageNum, Integer pageSize);

    ArticleVo getArticleInfo(Long id);

    void updateArticle(AddArticleDto addArticleDto);

    void deleteArticle(Long id);
}

